/**
 * 
 * 
 */

function* gen(){
    for (const i of [1,2,3]) {
        yield i;
    }
}

let g = gen();
for (const i of g) {
    console.log(i);
}
